var app=angular.module("app",["ngRoute"]);
app.config(['$routeProvider',function($routeProvider){
	$routeProvider
	.when("/home",{ //主页
		templateUrl:"home/home.html",
		controller:"homeCtrl"
	})
	.when("/market:text",{ //闪送超市
		templateUrl:"market/market.html",
		controller:"marketCtrl"
	})
	.when("/miao:text",{ //秒杀
		templateUrl:"miao/miao.html",
		controller:"miaoCtrl"
	})
	
	.when("/my",{// 我的
		templateUrl:"my/my.html"
	})
	
	.when("/reserve",{ //新鲜预定
		templateUrl:"reserve/reserve.html",
		controller:"bookCtrl"
	})
		
	.when("/car",{
		templateUrl:"car/car.html",
		controller:"carCtrl"
	})
	
	.when("/search",{
		templateUrl:"search/search.html"
		
	})
    .otherwise("/home");
}])